<template>
<div class="error">
    <h1>{{ code }}</h1>
    <p>{{ error }}</p>
  
</div>
</template>

<script>
export default {
    data(){
        return {
            code: 404 ,
            error: '' ,
        }
    },
    created(){
        this.error = this.$route.params.error
    }
}
</script>

<style>
.error{
    text-align: center;
}
</style>